﻿Imports jObjectiveDotNET

Partial Class tutorial1
    Inherits System.Web.UI.Page

    Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
        'Add a reference to the webservice on the page
        'This will allow methods on the webservice to be called via javascript
        With DirectCast(Master, ASP.site_master)
            .MenuTut1.Attributes("class") += " menuselected"
            .PageScriptWriter.ScriptManager.Services.Add(New ServiceReference(Common.ServicePath(Context) & "/WebService.asmx"))
        End With
    End Sub

    Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender
        'Call the submitForm method, passing in a reference to the UserForm object
        SubmitButton.OnClientClick = String.Format("submitForm({0}); return false;", UserFormSection.Namespace)
    End Sub
End Class
